package top.whk0710.WebDemo.service;

import top.whk0710.WebDemo.entity.User;

import java.util.List;

/**
 * 用户服务接口
 * Created by whk0710 on 2018/04/19
 */
public interface UserService {

    /**
     * 查询user是否存在
     *
     * @param userName
     */
    User checkIsExist(String userName);

    /**
     * 查询所有用户
     *
     * @return
     * */
    List<User> findAll();
    /**
     *添加用户
     *
     * @param u
     * @return
     * */
    int addUser(User u);

    /**
     * 删除用户
     *
     * @param id
     * @return
     * */
    int deleteUser(String id);
}
